* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h2 {
    font-size: 1.2em;
    opacity: 0.9;
}

.question-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.question-section h3 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.3em;
}

#questionInput {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
    font-family: inherit;
}

#questionInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#divinationBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

#divinationBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.result-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hexagram-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

#hexagramSymbol {
    font-size: 4em;
    margin-bottom: 15px;
    font-family: 'Times New Roman', serif;
}

#hexagramName {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

#hexagramNumber {
    font-size: 1.1em;
    color: #718096;
}

.interpretation {
    margin-bottom: 30px;
}

.interpretation h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#interpretationContent {
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.question-display {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.question-display h4 {
    color: #4a5568;
    margin-bottom: 10px;
}

.question-display p {
    color: #2d3748;
    font-style: italic;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
}

.interpretation-section {
    margin-bottom: 20px;
}

.interpretation-section h4 {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.interpretation-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .question-section, .result-section {
        padding: 20px;
    }
    
    #hexagramSymbol {
        font-size: 3em;
    }
}